package it.polimi.travelDreamEJB.basicproductmanagement;

import java.util.Date;
import java.util.List;

import it.polimi.travelDreamEJB.basicproductmanagement.dto.ExcursionDTO;
import it.polimi.travelDreamEJB.basicproductmanagement.dto.FlightDTO;
import it.polimi.travelDreamEJB.basicproductmanagement.dto.HotelDTO;
import it.polimi.travelDreamEJB.basicproductmanagement.dto.SearchExcursionDTO;
import it.polimi.travelDreamEJB.basicproductmanagement.dto.SearchFlightDTO;
import it.polimi.travelDreamEJB.basicproductmanagement.dto.SearchHotelDTO;

import javax.ejb.Local;

@Local
public interface BasicProductMgr {

	public void save_hotel(HotelDTO hotel);
	public void save_flight(FlightDTO flight);
	public void save_excursion(ExcursionDTO excursion);
	
	void update_hotel(HotelDTO hotel);
	void update_flight(FlightDTO flight);
	void update_excursion(ExcursionDTO excursion);
	
	public void delete_hotel(HotelDTO hotel);
	public void delete_flight(FlightDTO flight);
	public void delete_excursion(ExcursionDTO excursion);
	
	public HotelDTO getHotelDTO();
	public FlightDTO getFlightDTO();
	public ExcursionDTO getExcursionDTO();
	
	public List<HotelDTO> findHotel(SearchHotelDTO searchHotel);
	public List<FlightDTO> findFlight(SearchFlightDTO searchFlight);
	public List<ExcursionDTO> findExcursion(SearchExcursionDTO searchExcursion);
	
	public List<String> possibleCities();
	
}
